package com.example.cheeseerpadmin.bus.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.cheeseerpadmin.bus.entity.BusCustomer;
import com.example.cheeseerpadmin.bus.mapper.BusCustomerMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.cheeseerpadmin.bus.service.BusCustomerService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author cheese
 * @since 2022-02-14
 */
@Service
@Transactional
public class BusCustomerServiceImpl extends ServiceImpl<BusCustomerMapper, BusCustomer> implements BusCustomerService {
    /**
     * 重写几个方法用于缓存的切入
     */
    @Override
    public BusCustomer getById(Serializable id) {
        return super.getById(id);
    }

    @Override
    public boolean updateById(BusCustomer entity) {
        return super.updateById(entity);
    }

    @Override
    public boolean save(BusCustomer entity) {
        return super.save(entity);
    }

    @Override
    public boolean removeById(Serializable id) {
        return super.removeById(id);
    }

}
